var sysProxy = process.env.http_proxy;
if (!sysProxy) sysProxy = '192.168.12.51:8123';
sysProxy = sysProxy.replace('http://', '');
console.log(">>>>>>>>>> [allspark].[info].System proxy is :|" + sysProxy + "| <<<<<<<<<<");
module.exports = {
  spookyProxy: sysProxy,

  // admin openid
  admin_openids: [
    'oCxVxs7nNqfsL16hr9-9XbO7u74k', // 曾强
    'oCxVxs7eTWNcwP2QyGqlDXyZpbVE' // 曾健
  ],

  // 免费会员有效期默认为1个月
  free_duration: 1000 * 3600 * 24 * 30,

  // 公众平台账号信息(高校连连看)
  appid: 'wx2fd99e8aa1e2707c',
  appsecret: '6f4bee7e95420c3b49123387e034c91c',
  award_subscribe_qrcode: 1,
  award_register_qrcode: 9,

  // 每1小时58分钟刷新access_token
  access_token_expires_in: (3600 * 2 - 120) * 1000,
  menu: JSON.stringify({
    "button": [
      {
        "type": "click",
        "name": "VPN",
        "key": "CLICK_VPN"
      }
    ]
  }),
  exchange_rate: {
    point_vpn_time: 1
  },
  appHost: 'http://123.57.75.19', // 验证邮件的主机地址
  mailTokenStayTime: 47 * 3600 * 1000, // 验证邮件的有效时间
  mailServer: {
    host: 'smtp.mxhichina.com',
    port: 25,
    //defines if the connection should use SSL (if true) or not (if false)
    secure: false,
    auth: {
      user: 'admin@gaoxiaolink.com',
      pass: '1qaz@WSX'
    },
    connectionTimeout: 60 * 1000

  },
  mailSender: {
    // default values for sendMail method
    from: 'admin@gaoxiaolink.com'
  }
};